package me.xsomnus.shardingjdbcdemo2.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author somnus_xiawenye
 * @since 2018/10/9 10:05
 */
@Data
@TableName("t_order")
@EqualsAndHashCode(callSuper = true)
public class Order extends Model<Order> {

    @TableId
    private Long orderId;

    private Long userId;

    private String status;

    @Override
    protected Long pkVal() {
        return orderId;
    }
}
